Skip to content

Redesign home page layout and update featured content - #174

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/get-started-quickstart-button-orj1z3
Aug 21, 2026
Merged

Redesign home page layout and update featured content#174
oblomov-dev merged 1 commit into
mainfrom
claude/get-started-quickstart-button-orj1z3

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Summary

Restructures the home page to fit within a single browser viewport on typical laptop screens, and updates the featured content to prioritize the Tutorial over the Cookbook as the primary entry point for new users.

Key Changes

Layout & Styling (docs/.vitepress/theme/style.css)

  • Added comprehensive responsive design for screens 960px and wider to fit the entire home page (hero, three feature cards, samples button, and footer) within ~800px vertical space
  • Reduced padding and spacing throughout: hero padding reduced to 32px top/bottom, card padding to 16px, footer padding to 20px
  • Scaled down typography: hero name/text to 40px, tagline to 17px, icon size to 36px
  • Adjusted margins between sections (24px above samples button, 36px bottom margin for content) to eliminate excessive whitespace
  • Added detailed technical comments explaining specificity strategy to override scoped Vue component styles
  • Footer styling extracted to separate rules with proper specificity handling for all viewport sizes

Home Page Content (docs/index.md)

  • Changed primary hero action button text from "Get Started" to "Quickstart" for clarity
  • Replaced "Cookbook" feature card with "Tutorial" as the primary learning resource
    • Updated icon from book to graduation cap
    • Updated description to emphasize hands-on learning approach
    • Updated link to point to /tutorials/overview
  • Updated feature card comments to reflect new information architecture: Tutorial is for first-time visitors, Cookbook answers specific questions and remains accessible via navigation

Implementation Details

The CSS changes employ a specificity strategy using .Layout .VPHome ancestors to override scoped Vue component styles (which include [data-v-…] attributes). This approach is necessary because the theme's component styles compile with higher specificity, requiring three-unit selectors to take precedence. The media query targets 960px and above, leaving smaller screens to use the theme's default responsive behavior.

https://claude.ai/code/session_01HiTYuWrPNZX4zNQgrEzpsf

…reen

Three changes to the front door.

The hero's first button says Quickstart. It always went to
/get_started/quickstart; "Get Started" named the section around that page
rather than the page, and the reader who presses it lands on something with a
different name at the top.

The first card is the Tutorial instead of the Cookbook. A recipe answers a
question you already have, and a first visitor does not have one yet — the
walkthrough is what they came for, and the Cookbook is one click away in the
Guide nav the moment it is wanted.

And the page now fits a laptop screen. At the theme's own sizes it rendered
1152px tall at a 1440-wide window, so on a 13" MacBook the three cards and the
samples button sat below the fold: a signpost you have to scroll. Tightening
the hero, the cards, the samples block and the gap above the footer brings it
to 750px, footer included, with room for a hero headline that wraps.

Nothing is dropped or hidden — the type keeps its ranks, it is the air that
goes. Two of the rules needed more specificity than they first had: the
theme's are Vue scoped styles, so a bare `.VPHome` or `.VPFooter` is one unit
against their two and silently does nothing. All of them now carry the
ancestors that clear it, and the reason is written in the file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HiTYuWrPNZX4zNQgrEzpsf
Copilot AI lite review requested due to automatic review settings August 21, 2026 13:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@oblomov-dev
oblomov-dev merged commit bdb8934 into main Aug 21, 2026
1 check passed
@oblomov-dev
oblomov-dev deleted the claude/get-started-quickstart-button-orj1z3 branch August 21, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants